package org.example.carplatoon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.carplatoon.entity.car;
import org.example.carplatoon.mapper.carMapper;
import org.example.carplatoon.service.carService;
import org.springframework.stereotype.Service;

@Service
public class carServiceImpl extends ServiceImpl<carMapper, car> implements carService {


    /**
     * 计算车辆总数
     * @return
     */
    @Override
    public Integer sumOfAllCar() {
        return this.count();
    }
}
